package com.jagochan.module.business.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum CategoryType {

    ARTICLE("article", "文章"),
    TOPIC("topic", "话题"),
    ;
    @EnumValue
    private final String value;
    @JsonValue
    private final String desc;

    CategoryType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}
